﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json;

namespace KuiHuaBaoDian.Services.Guide {

    [JsonObject(MemberSerialization.OptIn)]
    public sealed class GuideSectionData : IGuideSection {

        public readonly static GuideSectionData Empty = new(0, 0);

        [JsonProperty("id")]
        public int ID { get; private set; }

        public bool IsDone => State == 1;

        [JsonProperty("state")]
        public int State { get; private set; }

        [JsonConstructor]
        public GuideSectionData(int id, int state) {
            ID = id;
            State = state;
        }

        IReadOnlyList<GuideReference> IGuideSection.GetVariable(string key) => throw new NotImplementedException();

        public string Name => throw new NotImplementedException();
    }
}
